<%@page pageEncoding="UTF-8"%>
<%@taglib prefix="commonTag" 	tagdir="/WEB-INF/tags/common/html"%>
<%@taglib prefix="commonUI" 	tagdir="/WEB-INF/tags/common/UI"%>
<%@taglib prefix="prototypeUI"	tagdir="/WEB-INF/tags/common/Prototype"%>   	
<jsp:useBean id="serviceObj" class="ajaxjs.data.service.Feedback" />
<!DOCTYPE html>
<html>
	<commonTag:head lessFile="/admin/asset/less/main.less">
		<%@ include file="../public/head.jsp" %>
		<style type="text/css">
			.imgs{
				display:none;
			}
		</style>
	</commonTag:head>
    <body>
    	<prototypeUI:nav />
		<prototypeUI:grid serviceObj="<%=serviceObj%>" />
    	<commonUI:uploader />
    	<commonUI:public load="loading" />
    	<commonUI:public load="form_upload_iframe" />
    	<commonUI:public load="lightbox" />
    	<commonUI:public load="form_valid_tooltip" />
    
    	<script>
seajs.use(['bigfoot/widget/list', 'bigfoot/prototype/handlers'], 
	function(_dataview, _crud){
	var listContainer = document.querySelector('#listContainer');
	
	serviceUrl = '../../service/feedback';
	var list = Object.create(_dataview.list);
		list.isByPageNo = false;
		list.pageSize = 10;
		list.url = serviceUrl; 
		list.itemTpl = document.querySelector('#listUl');
		list.listContainer = listContainer;
		list.pager = {
			prevBtn: document.querySelector('.pager button.perv'),
			pageIndicator: document.querySelector('.pager span'),
			nextBtn: document.querySelector('.pager button.next')
		};
		list.dataNotFound = document.querySelector('.dataNotFound');
		list.init();
		
	var crud = Object.create(_crud);
	crud.isRestful = true;
	crud.proxy = {
		url : serviceUrl
	};
	crud.init(list, listContainer);
});
    	</script>
    </body>
</html>